using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace TMFileManager.win32 {
    class User32 {
        static readonly int GWL_WNDPROC = (-4);
        static readonly int GWL_HINSTANCE = (-6);
        static readonly int GWL_HWNDPARENT = (-8);
        static readonly int GWL_STYLE = (-16);
        static readonly int GWL_EXSTYLE = (-20);
        static readonly int GWL_USERDATA = (-21);
        static readonly int GWL_ID = (-12);

        delegate IntPtr WndProcDelegate(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);

        [DllImport("user32.dll")]
        static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

        [DllImport("user32.dll")]
        static extern bool TrackPopupMenu(IntPtr hMenu, uint uFlags, int x, int y, int nReserved, IntPtr hWnd, IntPtr prcRect);
    }
}
